package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.product.PropertiesVal;
import com.zuipin.mapper.PropertiesValMapper;
import com.zuipin.service.IPropertiesValService;

@Service
public class PropertiesValServiceImpl implements IPropertiesValService {
	
	@Resource
	private PropertiesValMapper propertiesValMapper;
	
	@Override
	public int insertSelective(PropertiesVal record) {
		// TODO Auto-generated method stub
		return propertiesValMapper.insertSelective(record);
	}
	
	@Override
	public int updateByPrimaryKeySelective(PropertiesVal record) {
		// TODO Auto-generated method stub
		return propertiesValMapper.updateByPrimaryKeySelective(record);
	}
	
	@Override
	public int insertBatch(List<PropertiesVal> propVals) {
		// TODO Auto-generated method stub
		return propertiesValMapper.insertBatch(propVals);
	}
	
	@Override
	public List<PropertiesVal> selectPropValByIDOrValName(String search, Long propId) {
		// TODO Auto-generated method stub
		return propertiesValMapper.selectPropValByIDOrValName(search, propId);
	}
	
	@Override
	public PropertiesVal selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return propertiesValMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public List<PropertiesVal> selectByPropId(Long propId) {
		// TODO Auto-generated method stub
		return propertiesValMapper.selectByPropId(propId);
	}
	
}
